{% extends "layouts/application.html" %}
{% block content %}

<style type="text/css">
  ul{margin:0px;padding:0px;float:left;list-style:none;}
  li{margin-left:10px;padding:0px;color:red;}
</style>
<div align="center">
  <DIV class=boxright>
    <DIV class=bltop2>
      <div align="left">&nbsp;&nbsp;&nbsp;
        <strong>
          &nbsp;&nbsp;&nbsp;当前位置：&nbsp;&nbsp;
          <a href="/{%site_root%}/manage/index/">后台管理</a>&nbsp;&nbsp;
          <img src="/site_media/images/zd_arrow.gif">&nbsp;&nbsp;
          <a href="/{%site_root%}/manage/resource_sel/">资源管理</a>&nbsp;&nbsp;
          <img src="/site_media/images/zd_arrow.gif">&nbsp;&nbsp;
          <a href="/{%site_root%}/manage/setting_levelone/">一级目录管理</a>&nbsp;&nbsp;
          <img src="/site_media/images/zd_arrow.gif">&nbsp;&nbsp;
          <a href="#">二级目录编辑</a>
        </strong>
      </div>
    </DIV>
    <DIV class=c_box>
      <DIV class="rep_left">
        <form action="" method="post" enctype="multipart/form-data">
          <TABLE id=tblSearch  cellSpacing=0 cellPadding=4  width="100%" border=0>
            <TBODY>
              <TR>
                <TD class=rtdp height=22 COLSPAN="3" ALIGN="left"><STRONG>二级目录名编辑</STRONG></TD>
                <TD class=rtdp align="right" colSpan=3>&nbsp;</TD>
              </TR>
              <TR>
                <TD class=rep_li_c2 width="5%" >二级目录名</TD>
                <TD class=rep_li_c2 width="10%" ALIGN="left">
                  {{form.name}}{{form.name.errors}}
                </TD>
                <TD class=rep_li_c2 width="5%" ALIGN="left" colSpan=2>
                  更换图标
                </TD>
                <TD class=rep_li_c2 width="20%" ALIGN="left" colSpan=2>
                  <input id="name" type="file" name="pic" class="text"/>{{form.pic.errors}}
                </TD>
              </TR>

              <TR>
                <TD class=rep_li_c2 colSpan=6>
                  <INPUT ONCLICK="return onadd();" onMouseOver="this.className='submit2'" onMouseOut="this.className='submit'" class=submit id="" type=submit value=提交 name="">
                  <INPUT onMouseOver="this.className='reset2'" onMouseOut="this.className='reset'" id="reset_load" class="reset"  type="reset" value=取消>
                </TD>
              </TR>
            </TBODY>
          </TABLE>
        </form>
      </DIV>
    </DIV>

    <SCRIPT type="text/javascript">
        iniControlsEvent(document.forms[0]);

        function onadd()
        {
            if($F("resource[resource_name]")==""){
                alert("请填写二级目录标题");
                return false;
            }
            return true;
        }
    </SCRIPT>
  </DIV>
  <div>
  </div>
</div>
{% endblock %}
